package GUIStudy.Basis.JFrameProgram;

import javax.swing.JFrame;

public class Basis1 {
    public static void main(String[] args) {
        JFrame frame = new JFrame();
        //设置窗口标题
        frame.setTitle("Basis1");
        //设置窗口大小
        frame.setSize(300,250);
        //设置默认窗口关闭键
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE/* or 3*/);
        //设置窗口是否在屏幕中心出现
        frame.setLocationRelativeTo(null);
        //设置窗口可见
        frame.setVisible(true);
    }
}
